Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve URL handling for external links in index.js #1870

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

AzeemSup
Copy link
Contributor

Enhanced URL handling in index.js:

  • Added checks in getUrlInfo for malformed URLs.
  • Refined extractMainDomainFromUrl for better domain extraction.
  • Ensured external links apply target attributes correctly.
  • Improved logging to simplify debugging.

This PR includes housekeeping improvements to URL handling in the script, following the guidelines in [CONTRIBUTING.md].

Improved URL handling with error checks for malformed links in `getUrlInfo`, refined domain extraction in `extractMainDomainFromUrl`, and ensured external link attributes apply correctly. Enhanced logging for easier debugging.

Signed-off-by: Muhammad Azeem <37941410+AzeemSup@users.noreply.github.com>
@dougaitken dougaitken merged commit f8055b8 into remoteintech:main Dec 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants